<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>订单管理</title>
	<%@ include file="/pages/common/head.jsp"%>
</head>
<body>
	
	<div id="header">
			<img class="logo_img" alt="" src="../../static/img/logo.gif" >
			<span class="wel_word">订单管理系统</span>
		<div>
			<a href="manager/bookServlet?action=page">图书管理</a>
			<a href="orderServlet?action=showMyOders">订单管理</a>
			<a href="index.jsp">返回商城</a>
		</div>
	</div>
	
	<div id="main">
		<table>
			<tr>
				<td>日期</td>
				<td>金额</td>
				<td>详情</td>
				<td>发货</td>
				
			</tr>
			<c:forEach items="${requestScope.orders}" var="item">
				<tr>
					<td>${item.createTime}</td>
					<td>${item.price}</td>
					<td><a href="orderServlet?action=showOdersDetail&orderId=${item.orderId}">查看详情</a></td>
					<td>
						<c:choose>
							<c:when test="${item.status==0}">
								<a href="orderServlet?action=sendOrder&orderId=${item.orderId}">点击发货</a>
							</c:when>
							<c:when test="${item.status==1}">
								已发货，亲
							</c:when>
							<c:when test="${item.status==2}">
								收获成功
							</c:when>
							<c:otherwise>
							</c:otherwise>
						</c:choose>
					</td>
				</tr>
			</c:forEach>

		</table>
	</div>

	<%@ include file="/pages/common/footer.jsp"%>
</body>
</html>